home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / jed096_1.zip / SLANG / SRC / MAKEFILE.DJG < prev    next >
Text File  |  1994-04-26  |  825b  |  36 lines

  1. # DJGPP makefile
  2.  
  3. # define FLOAT_TYPE below if you want floating point support.  This 
  4. #  might require a floating point processor.  Consult the DJGPP 
  5. #  documentation for morre details.  In particluar, the calc.c demo
  6. #  program requires it.
  7.  
  8. CFLAGS = -O -Wall #-DFLOAT_TYPE #-DUSE_DOUBLE
  9. # Note that to enable double precision floating point, add the -DUSE_DOUBLE
  10. # to the CFLAGS macro.
  11.  
  12. CC =gcc
  13.  
  14. OBJS = slang.o slparse.o slmath.o slfile.o slstd.o slarray.o slregexp.o\
  15.  slunix.o slmatrix.o
  16.  
  17. EXEC = calc
  18. RANLIB = ranlib
  19.  
  20. SUFFIXES = .c
  21. .SUFFIXES: $(SUFFIXES)
  22.  
  23. .c.o:
  24.     $(CC) -c $(CFLAGS) $*.c
  25.  
  26. libslang.a: ${OBJS}
  27.     rm -f libslang.a
  28.     ar -cr libslang.a ${OBJS}
  29.     $(RANLIB) libslang.a
  30.  
  31. calc: calc.o libslang.a
  32.     $(CC) $(CFLAGS) calc.o -L. libslang.a -lm -o $(EXEC)
  33.  
  34. export:
  35.     export -f slang.lis
  36.